// 权限树节点类型
export interface PermissionTreeNode {
  id: number
  parentId: number | null
  permissionName: string
  permissionCode: string
  permissionType: number // 1: 菜单, 2: 按钮
  path?: string
  component?: string
  icon?: string
  sort: number
  status: number // 1: 启用, 0: 禁用
  children?: PermissionTreeNode[]
}

// 权限查询参数
export interface PermissionQuery {
  permissionName?: string
  permissionCode?: string
  permissionType?: number
  status?: number
}

// 权限表单数据
export interface PermissionForm {
  id?: number
  parentId: number | null
  permissionName: string
  permissionCode: string
  permissionType: number
  path?: string
  component?: string
  icon?: string
  sort: number
  status: number
} 